<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title></title>
    <style>
    .outerDiv {
      display: inline-block;
      width: 160px;
      height: 400px;
      background-color: pink;
    }
    .upperDiv {
      width: 50px;
      height: 50px;
      background-color: red;
    }
    .downDiv {
      width: 50px;
      height: 50px;
      background-color: green;
    }
    #originDiv div {
      width: 160px;
    }
    #originDiv .upperDiv {
      margin-bottom: 50px;
    }
    #targetDiv {
      margin-bottom: 50px;
    }
    #targetDownDiv {
      /* margin-top: 20px; */
      /* margin-top: 50px; */
      margin-top: 60px;
    }
    </style>
    <link href="css/style.css" rel="stylesheet">
  </head>
  <body>
    <div class="outerDiv" id="originDiv">
      <div class="upperDiv"></div>
      <div class="downDiv"></div>
    </div>
    <div class="outerDiv">
      <div class="upperDiv" id="targetDiv"></div>
      <div class="downDiv" id="targetDownDiv"></div>
    </div>
  
    <hr>
    我们都是50px正方形，上面正方形下外边距也是50px，下方正方形上外边距是60px。间隙像60px，而非110px
  </body>
</html>
